package com.training.java.core.interfaces;

public class ComputerInterfaceDemo {

	public static void main(String[] args) {

		Computer computer1 = new Tablet("Asus", "vivoTab", 7);
		Computer computer2 = new SmartPhone("Samsung", "galaxy note 3", 6);

		KindsOfComputer(computer1);
		KindsOfComputer(computer2);

	}

	public static void KindsOfComputer(Computer computer) {
		computer.switchOn();
		computer.switchOff();
		computer.connectWiFi();
		computer.showInfo();
		System.out.println("\n");
	}
}
